package com.ruoyi.device.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 设备账号信息对象 device_account
 * 
 * @author luogongquan
 * @date 2024-09-06
 */
public class DeviceAccount extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备id */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long deviceId;

    /** 鉴权信息 */
    @Excel(name = "鉴权信息")
    private String authCode;

    /** 设备类型（1：手环，2：面诊仪.......） */
    @Excel(name = "设备类型", readConverterExp = "1=：手环，2：面诊仪.......")
    private String type;

    /** 设备账号 */
    @Excel(name = "设备账号")
    private String deviceAccount;

    /** 设备状态（1：正常 2：锁定 3：删除 4：待初始化） */
    @Excel(name = "设备状态", readConverterExp = "1=：正常,2=：锁定,3=：删除,4=：待初始化")
    private String status;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private String deviceNo;

    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }
    public void setAuthCode(String authCode) 
    {
        this.authCode = authCode;
    }

    public String getAuthCode() 
    {
        return authCode;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setDeviceAccount(String deviceAccount) 
    {
        this.deviceAccount = deviceAccount;
    }

    public String getDeviceAccount() 
    {
        return deviceAccount;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDeviceNo(String deviceNo) 
    {
        this.deviceNo = deviceNo;
    }

    public String getDeviceNo() 
    {
        return deviceNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("deviceId", getDeviceId())
            .append("authCode", getAuthCode())
            .append("type", getType())
            .append("deviceAccount", getDeviceAccount())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("deviceNo", getDeviceNo())
            .toString();
    }
}
